<html>
<head>
<title>Panda3D Tutorial - Tasks</title>
<style type="text/css">
body {
	font-family:  Verdana, Arial, Helvetica, sans-serif;
   	font-size: 11px;
	background-image: url("w_images/bg.gif");
	background-repeat: repeat;
}

a {
	color: #808080;
	text-decoration: none;
}

a:hover {
	color: #000;
	text-decoration: underline;
}

.title {
	font-size: 18px;
	font-weight: bold;
	text-decoration: underline;
	color: #000;
}

.text {
	font-size: 12px;
	color: #000;
}

.code {
	font-size: 12px;
	color: FF0000;
}

.screenshot
{
float: none;
margin: 0 0 10px 10px;
border: 1px solid #000;
}

</style>
</head>

<body>
<span class="title">Tasks Tutorial</span>
<br>
<br>
<span class="text">This tutorial will cover Tasks.  Tasks are functions that run during every frame of the program. Panda3D runs a number of tasks during any program, but additional tasks may be added.  For this tutorial, tasks will be used to update the ship, asteriod and bullet positions, in addition to checking for collisions.  To do this, all the data you need to know is how much time has passed and the velocity of each object.
<br>
<br>
NOTE: Adding lots of processor intensive tasks will have an adverse affect on the framerate/performance of your program.

For more information on tasks, please consult the <a href="http://www.panda3d.org/wiki/index.php/Tasks">Panda3D online manual</a>.
<br>
<br>
The image below shows the tutorial in action.
</span>
<br>
<br>
<img class="screenshot" src="screenshots/asteroids.jpg">
</body>
</html>